package domain

// domain 工厂
type Factory interface {
	UserDomain() UserGateway
	BookingGateway() BookingGateway
	ProductGateway() ProductGateway
	OrderGateway() OrderGateway
	CartDomain() CartGateway

	Init() error
	Close() error
}

var fc Factory

func SetFactory(f Factory) {
	fc = f
}

func GetFactory() Factory {
	return fc
}
